﻿using System;
using System.Collections.Generic;

namespace TestByWire
{
    public class InteractionEqualityComparer : IEqualityComparer<IContainerInteraction>
    {
        public bool Equals(IContainerInteraction x, IContainerInteraction y)
        {
            if (x == null && y == null)
                return true;
            if (x == null || y == null)
                return false;

			if (!Equals(x.RegistrationType, y.RegistrationType))
                return false;

            return Equals(x.RegistrationName, y.RegistrationName);
        }

        public int GetHashCode(IContainerInteraction obj)
        {
            throw new NotImplementedException();
        }
    }
}